@setlocal
@echo off

echo
echo Registering IIS Module
SET DEST=%windir%\system32\inetsrv

echo
echo unregistering IISHost
%DEST%\appcmd.exe uninstall module IISHost
%DEST%\appcmd.exe uninstall module IISHost100
%DEST%\appcmd.exe uninstall module IISHost110

echo
echo registering IISHost
%DEST%\appcmd.exe install module /name:IISHost110 /image:"%ROLEROOT%\approot\bin\IISHost110.dll" /add:true /lock:false

exit /b 0